# Copyright (c) 2017 by Michael Zahniser
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.

mission "Pirate Occupation [0]"
	name "海賊に占拠された<system>星系"
	minor
	repeat
	description "小規模な海賊団が<system>を占拠しており、地元政府が助けを求めています。星系内の海賊を撃破し、<date>までに<planet>に着陸すれば、報酬<payment>が支払われます。"
	deadline
	to offer
		random < 5
		"combat rating" > 100
	source
		not government "Pirate"
		attributes "south" "rim"
	destination
		not government "Pirate" "Quarg"
		distance 2 3
		attributes "south"
	npc
		government "Militia"
		personality heroic
		fleet "Small Militia"
	npc
		government "Militia"
		personality heroic staying
		system destination
		fleet "Small Militia"
	npc evade
		government "Pirate"
		personality heroic staying target harvests plunders
		system destination
		fleet "Small Southern Pirates" 3
	on offer
		conversation "pirate occupation"
	on visit
		dialog phrase "generic pirate fleet battle on visit"
	on complete
		payment 100000
		dialog phrase "generic pirate attack payment dialog"

mission "Pirate Occupation [1]"
	name "海賊に占拠された<system>星系"
	minor
	repeat
	description "海賊の一団が<system>を占拠しており、地元政府が助けを求めています。星系内の海賊を撃破し、<date>までに<planet>に着陸すれば、報酬<payment>が支払われます。"
	deadline
	to offer
		random < 5
		"combat rating" > 200
	source
		not government "Pirate"
		attributes "south" "rim"
	destination
		not government "Pirate" "Quarg"
		distance 2 3
		attributes "south"
	npc
		government "Militia"
		personality heroic
		fleet "Small Militia" 2
	npc
		government "Militia"
		personality heroic staying
		system destination
		fleet "Small Militia"
	npc evade
		government "Pirate"
		personality heroic staying target harvests plunders
		system destination
		fleet "Small Southern Pirates" 2
		fleet "Large Southern Pirates"
	on offer
		conversation "pirate occupation"
	on visit
		dialog phrase "generic pirate fleet battle on visit"
	on complete
		payment 150000
		dialog phrase "generic pirate attack payment dialog"

mission "Pirate Occupation [2]"
	name "海賊に占拠された<system>星系"
	minor
	repeat
	description "大規模な海賊団が<system>を占拠しており、地元政府が助けを求めています。星系内の海賊を撃破し、<date>までに<planet>に着陸すれば、報酬<payment>が支払われます。"
	deadline
	to offer
		random < 5
		"combat rating" > 300
	source
		not government "Pirate"
		attributes "south" "rim"
	destination
		not government "Pirate" "Quarg"
		distance 2 3
		attributes "south"
	npc
		government "Militia"
		personality heroic
		fleet "Large Militia"
		fleet "Small Militia"
	npc
		government "Militia"
		personality heroic staying
		system destination
		fleet "Small Militia"
	npc evade
		government "Pirate"
		personality heroic staying target harvests plunders
		system destination
		fleet "Large Southern Pirates" 3
	on offer
		conversation "pirate occupation"
	on visit
		dialog phrase "generic pirate fleet battle on visit"
	on complete
		payment 200000
		dialog phrase "generic pirate attack payment dialog"

conversation "pirate occupation"
	"突然、外から怒鳴り声や叫び声が聞こえ、パイロットたちが自分の船へ走っていきます。「<destination>が海賊艦隊に占拠されてる！　<date>までに駆けつけられる戦闘可能な船なら誰でもいいから、防衛に加わってくれと言ってるぞ！」　手を貸せば<planet>の当局はかなりの額を払ってくれるでしょうが、あっさり命を落とす近道にもなりかねません。"
	choice
		"	(戦いには加わらない)"
			decline
		"	(防衛艦隊に加わる)"
	"数人の市民軍パイロットが海賊の攻撃を撃退するために集まった。あなたはそれに加わり、きたる戦いにむけて船の準備をする……"
		accept



mission "Sketchy Cargo [0]"
	name "<planet>への配達"
	job
	repeat
	description "<tons>の積み荷を<destination>へ届けよ。報酬は <payment>。"
	cargo "荷札のない積み荷" 5 2 .1
	to offer
		random < 15
	source
		attributes "south"
	destination
		distance 2 10
		attributes "south"
	on accept
		dialog "仕事として指定された指示にしたがって、あなたは見捨てられたように見える倉庫へ行き、荷札のない枠箱の中に積み荷を見つけた。船にその積み荷を積こむあいだ、あなたは見られていると感じる。"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog "あなたは荷札のない積み荷を、拾ったところとはあまり似ていない倉庫に降ろす。最後の枠箱が船からなくなると、外套をはおった男があなたに <payment>手渡した。"

mission "Sketchy Cargo [1]"
	name "<planet>への配達"
	job
	repeat
	description "<tons>の積み荷を<destination>へ届けよ。報酬は <payment>。"
	cargo "荷札のない積み荷" 25 2 .05
	to offer
		random < 10
	source
		attributes "south"
	destination
		distance 2 10
		attributes "south"
	on accept
		dialog "仕事として指定された指示にしたがって、あなたは見捨てられたように見える倉庫へ行き、荷札のない枠箱の中に積み荷を見つけた。船にその積み荷を積こむあいだ、あなたは見られていると感じる。"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog "あなたは荷札のない積み荷を、拾ったところとはあまり似ていない倉庫に降ろす。最後の枠箱が船からなくなると、外套をはおった男があなたに <payment>手渡した。"



mission "Sketchy Passenger [0]"
	name "<planet>への乗客の輸送"
	job
	repeat
	description "<fare>を<destination>へ連れていけ。報酬は <payment>。"
	passengers 2 10 .9
	to offer
		random < 15
	source
		attributes "south"
	destination
		distance 2 10
		attributes "south"
		not attributes "station"
	on accept
		dialog "乗客を見つけるのはいくぶんの困難があった。約 1 時間にわたってさがしたあと、ついにあなたは乗客を発見する。あなたにつづいて船に戻るとき、乗客たちがおたがいにささやきあっていたのが聞こえた。しかしあなたにはなにを言っているのか理解できなかった。"
	on visit
		dialog phrase "generic passenger on visit"
	on complete
		payment 2000 160
		dialog "乗客たちから、にぎやかな宇宙港の中心を避けて着陸するように頼まれた。あなたに <payment>を手渡すと、その乗客たちは船からいそいで飛びだして、かなりの速さで宇宙港から離れていった。"

mission "Sketchy Passenger [1]"
	name "<planet>への乗客の輸送"
	job
	repeat
	description "<fare>を<destination>へ連れていけ。報酬は <payment>。"
	passengers 2 10 .7
	to offer
		random < 10
	source
		attributes "south"
	destination
		distance 2 10
		attributes "south"
		not attributes "station"
	on accept
		dialog "乗客を見つけるのはいくぶんの困難があった。約 1 時間にわたってさがしたあと、ついにあなたは乗客を発見する。あなたにつづいて船に戻るとき、乗客たちがおたがいにささやきあっていたのが聞こえた。しかしあなたにはなにを言っているのか理解できなかった。"
	on visit
		dialog phrase "generic passenger on visit"
	on complete
		payment 2000 160
		dialog "乗客たちから、にぎやかな宇宙港の中心を避けて着陸するように頼まれた。あなたに <payment>を手渡すと、その乗客たちは船からいそいで飛びだして、かなりの速さで宇宙港から離れていった。"

mission "Delta V Shipment [0]"
	name "積み荷を<planet>へ"
	description "<cargo>を、南部リムの大手ミサイル・エンジンメーカーであるデルタV社の本拠地<destination>へ届けてください。報酬は<payment>です。"
	cargo "合金" 5 2 .1
	job
	repeat
	to offer
		random < 10
		has "landing access: Solace"
	source
		near Pherkad 2 15
		attributes factory
		not government "Pirate"
	destination Solace
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"

mission "Delta V Shipment [1]"
	name "積み荷を<planet>へ"
	description "<cargo>を、南部リムの大手ミサイル・エンジンメーカーであるデルタV社の本拠地<destination>へ届けてください。報酬は<payment>です。"
	cargo Electronics 5 2 .1
	job
	repeat
	to offer
		random < 10
		has "landing access: Solace"
	source
		near Pherkad 2 15
		attributes factory
		not government "Pirate"
	destination Solace
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"

mission "Tarazed Shipyards Shipment [0]"
	name "積み荷を<planet>へ"
	description "<cargo>を、南部有数の造船企業タラゼド・シップヤードの本拠地<planet>へ届けてください。報酬は<payment>です。"
	cargo "武器" 5 2 .1
	job
	repeat
	to offer
		random < 10
		has "landing access: Wayfarer"
	source
		near Tarazed 2 10
		attributes factory
	destination Wayfarer
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"

mission "Tarazed Shipyards Shipment [1]"
	name "積み荷を<planet>へ"
	description "<cargo>を、南部有数の造船企業タラゼド・シップヤードの本拠地<planet>へ届けてください。報酬は<payment>です。"
	cargo "船体合金" 5 2 .1
	job
	repeat
	to offer
		random < 10
		has "landing access: Wayfarer"
	source
		near Tarazed 2 10
		attributes factory mining
	destination Wayfarer
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"

mission "Tarazed Shipyards Shipment [2]"
	name "積み荷を<planet>へ"
	description "<cargo>を、南部有数の造船企業タラゼド・シップヤードの本拠地<planet>へ届けてください。報酬は<payment>です。"
	cargo "船舶システム" 5 2 .1
	job
	repeat
	to offer
		random < 10
		has "landing access: Wayfarer"
	source
		near Tarazed 2 10
		attributes factory mining
	destination Wayfarer
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"

mission "Tarazed Systems Shipment [0]"
	name "積み荷を<planet>へ"
	description "<cargo>を、南部人類宙域で評価の高い装備メーカー兼設計会社、タラゼド・システムズの本拠地<planet>へ届けてください。報酬は<payment>です。"
	cargo "合金" 5 2 .1
	job
	repeat
	to offer
		random < 10
		has "landing access: Wayfarer"
	source
		near Tarazed 2 10
		attributes factory mining
	destination Wayfarer
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"

mission "Tarazed Systems Shipment [1]"
	name "積み荷を<planet>へ"
	description "<cargo>を、南部人類宙域で評価の高い装備メーカー兼設計会社、タラゼド・システムズの本拠地<planet>へ届けてください。報酬は<payment>です。"
	cargo Electronics 5 2 .1
	job
	repeat
	to offer
		random < 10
		has "landing access: Wayfarer"
	source
		near Tarazed 2 10
		attributes factory
	destination Wayfarer
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"
